package teach.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import teach.aistar.mapper.CarStyleMapper;
import teach.aistar.model.entity.CarStyle;
import teach.aistar.service.ICarStyleService;

import java.util.List;

@Service
@Transactional
public class CarStyleServiceImpl implements ICarStyleService {
    @Autowired
    private CarStyleMapper carStyleMapper;

    @Override
    public List<CarStyle> findAll() {
        return carStyleMapper.findAll();
    }

    @Override
    public CarStyle findById(int id) {
        return carStyleMapper.findById(id);
    }
}
